package com.ptmall.app.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;

import com.ptmall.app.MainActivity;
import com.ptmall.app.R;
import com.ptmall.app.base.BaseMvpActivity;

/**
 * Created by Administrator on 2018/12/7.
 */

public class SplshActivity extends BaseMvpActivity {
    ImageView fragment_container;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setView(R.layout.activity_welcom);
        new Thread(){
            @Override
            public void run() {
                super.run();
                try {
                    fragment_container.setImageResource(R.drawable.sp_back);
                    sleep(1000);


                    startActivity(new Intent(getContext(),MainActivity.class));
                    finish();
                } catch (InterruptedException e) {
                    e.printStackTrace();

                    startActivity(new Intent(getContext(),MainActivity.class));
                    finish();
                }
            }
        }.start();
    }

    @Override
    public void initViews() {
        fragment_container = (ImageView) findViewById(R.id.fragment_container);

    }

    @Override
    public void initEvents() {

    }
}
